package com.jiang.feign.mybatis_plus;

import com.jiang.core.common.MSG;
import com.jiang.feign.mybatis_plus.dto.GoodsDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("FeignGoodsService")
public class GoodsService {

    @Autowired
    private GoodsServiceAPI goodsServiceAPI;

    public void add(GoodsDTO DTO){
        MSG<?> msg = goodsServiceAPI.add(DTO);
        System.out.println(msg);
    }
}